FROM registry.cn-hangzhou.aliyuncs.com/sblockchain/node
WORKDIR /package
COPY package.json /package/
RUN cnpm install
WORKDIR /usr/src/mobile
COPY . /usr/src/mobile/
RUN cp -a /package/node_modules /usr/src/mobile/
RUN webpack
ENV PORT=3002
CMD ["node","./dev-server.js"]
EXPOSE 3002
